import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { RouteObject } from "@/routers/interface";
import { LayoutIndex } from "@/routers/constant";
import Home from "@/views/home/index";

const HomeRouter: Array<RouteObject> = [
  // {
  //   path: "home/index",
  //   element: lazyLoad(React.lazy(() => import("@/views/home/index"))),
  //   meta: {
  //     title: "index",
  //     key: "home",
  //   },
  // },
  {
    element: <LayoutIndex />,
    children: [
      {
        path: "home/index",
        element: <Home />,
        meta: {
          title: "index",
          key: "home",
        },
      },
    ],
  },
];

export default HomeRouter;
